Skip to content

Conversation

@jestabro
Copy link
Contributor

Change summary

Discrepancies in blank lines, whitespace, or missing final newline can lead to false positives in the boolean check unsaved_commits, which is used to provide warning messages on reboot/poweroff and commit-confirm.

The discrepancies can arise due to automated formatting at boot from migration/activation scripts or intialization on first install; such discrepancies trigger a false positive due to the use of Python's filecmp module.

Irrespective of consistent formatting, use a smarter file comparison utility.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes)
  • Migration from an old Vyatta component to vyos-1x, please link to related PR inside obsoleted component
  • Other (please describe):

Related Task(s)

Related PR(s)

How to test / Smoketest result

Checklist:

  • I have read the CONTRIBUTING document
  • I have linked this PR to one or more Phabricator Task(s)
  • I have run the components SMOKETESTS if applicable
  • My commit headlines contain a valid Task id
  • My change requires a change to the documentation
  • I have updated the documentation accordingly

@jestabro jestabro self-assigned this Nov 22, 2025
@github-actions
Copy link

github-actions bot commented Nov 22, 2025

👍
No issues in PR Title / Commit Title

Copy link
Member

@c-po c-po left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

strip() whitespaces before comparing the running configuration with the saved configuration.

@github-actions
Copy link

CI integration 👍 passed!

Details

CI logs

  • CLI Smoketests (no interfaces) 👍 passed
  • CLI Smoketests VPP 👍 passed
  • CLI Smoketests (interfaces only) 👍 passed
  • Config tests 👍 passed
  • Config tests VPP 👍 passed
  • RAID1 tests 👍 passed
  • TPM tests 👍 passed

@jestabro
Copy link
Contributor Author

Force pushed trivial formatting change to make ruff happy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants